package com.hzit.controller;

import com.hzit.entity.R;
import com.hzit.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@RestController
@RequestMapping("/classes")
public class ClassesContoller {
	@Autowired
	private ClassesService classesService;
	//1. 查询所有班级
	@GetMapping("/list")
	public R findALl(){
		return R.ok().data("list",classesService.list());
	}
}
